package chd.edu.spzx.pay.mapper;

import chd.edu.spzx.model.entity.pay.PaymentInfo;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author Zhang Chaoliang
 * create 2023
 */
@Mapper
public interface PaymentInfoMapper {

    /**
     * 根据订单编号查询订单支付记录
     * @param orderNo
     * @return
     */
    PaymentInfo getByOrderNo(String orderNo);

    /**
     * 添加支付记录
     * @param paymentInfo
     */
    void save(PaymentInfo paymentInfo);

    /**
     * 更新支付记录
     * @param paymentInfo
     */
    void updatePaymentInfo(PaymentInfo paymentInfo);
}
